package design.principle.ocp;

/**
 * @description: OCP 测试
 * @author: liuzhangcheng
 **/
public class OCPTest {
    public static void main(String[] args) {
        ICourse course = new JavaCourse("java", 100.10);
        ICourse course2 = new JavaDiscountCourse("java优惠", 100.10);
        System.out.println(course.getName() + ":" + course.getPrice());
        System.out.println(course2.getName() + ":" + course2.getPrice());

    }
}
